#include "kernel/types.h"
#include "kernel/stat.h"
#include "user/user.h"

int main(int argc, char *argv[])
{
    if (argc < 3 || argv[1][0] == '0')
    {
        printf("args error.\r\n");
        exit(0);
    }

    if (trace(atoi(argv[1])) < 1)
    {
        printf("trace error.\r\n");
        exit(0);
    }

    exec(argv[2], &argv[2]);
    return 0;
}
